import request from '@/utils/request'

export function refresh(params) {
  return request({
    url: '/basic/gen-level',
    method: 'get',
    params
  })
}

export function saveLevelConf(params) {
  return request({
    url: '/admin/save-level-conf',
    method: 'get',
    params
  })
}

export function getLevelConf(params) {
  return request({
    url: '/admin/get-level-conf',
    method: 'get',
    params
  })
}

export function getEnv(params) {
  return request({
    url: '/admin/get-env',
    method: 'get',
    params
  })
}

export function setEnv(params) {
  return request({
    url: '/admin/set-env',
    method: 'get',
    params
  })
}

export function getOrders(params) {
  return request({
    url: '/admin/get-orders',
    method: 'get',
    params
  })
}

export function updateOrder(params) {
  return request({
    url: '/admin/update-order',
    method: 'get',
    params
  })
}

